<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>生成充值码</title>
</head>
<body>
<table border="1">
    <tr>
        <th>充值码</th>
        <th>充值金额</th>
        <th>状态</th>
        <th>时间</th>
    </tr>
    <c:forEach var="record" items="${records}">
        <tr>
            <td>${record.rechargeCode}</td>
            <td>${record.amount}</td>
            <td>${record.status}</td>
            <td>${record.timestamp}</td>
        </tr>
    </c:forEach>
</table>

<br>
<a href="generateCode">生成充值码</a> |
<a href="recharge">去充值</a> |
</body>
</html>
